package org.common.utils.generatortable.window.tools;
import org.common.utils.generatortable.GeneratorTableManager;
import javax.swing.*;

/**
 *
 */
public class DialogTool {

    /**
     * 显示提示框
     * @param textKey 本地化key
     */
    public static void showMessageDialog(String textKey) {
        GeneratorTableManager manager = GeneratorTableManager.getInstance();
        JOptionPane.showMessageDialog(manager.getWindow(), manager.getString(textKey), manager.getString("GeneratorTableWindow.dialog.title"), JOptionPane.ERROR_MESSAGE);
    }
}
